package com.cloud.mqtt.util;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * @Author: JohnCoding
 * @Description:
 * @date: 2020/3/21 11:08
 */
public class IOUtils {

    public static void closeConnection(Connection connection){
        try {
            if(null != connection){
                connection.close();
            }
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }


}
